﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using YouWei.Infrastructure.Service;

namespace YouWei.Op.Controllers
{
    public class DrivingLicenseController : BaseController
    {
        DrivingLicenseService _service = new DrivingLicenseService();
        public ActionResult Detail()
        {
            var userId = GetParam<int>("userId");
            var model = _service.GetByUser(userId);
            if (model == null)
                model = new Infrastructure.Entity.DrivingLicense();
            return View(model);
        }
    }
}